import request from '@/utils/request'

// 查询库存盘点记录列表
export function listStocktake(query) {
  return request({
    url: '/inventory/stocktake/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点记录详细
export function getStocktake(id) {
  return request({
    url: '/inventory/stocktake/' + id,
    method: 'get'
  })
}

// 新增库存盘点记录
export function addStocktake(data) {
  return request({
    url: '/inventory/stocktake',
    method: 'post',
    data: data
  })
}

// 修改库存盘点记录
export function updateStocktake(data) {
  return request({
    url: '/inventory/stocktake',
    method: 'put',
    data: data
  })
}

// 删除库存盘点记录
export function delStocktake(id) {
  return request({
    url: '/inventory/stocktake/' + id,
    method: 'delete'
  })
}
